<?php
$con = mysql_connect("localhost", "root", "");
if (!$con) {
    die('Could not connect: ' . mysql_error());
}

// Create table in my_db database
mysql_select_db("my_db", $con);
// $sql = "DELETE FROM `my_db`.`Person` WHERE `Person`.`PersonID` = '$_GET[Id]'";
// $sql = "UPDATE `my_db`.`Person` SET `Checked` = '1' WHERE `Person`.`PersonID` = '$_GET[Id]';";
$sql = "UPDATE `Admin` SET `Password`='$_POST[Password]' WHERE `UserName`= '$_POST[UserName]'";
mysql_query($sql, $con);
mysql_close($con);
header("location: Admin_AdminList.php");
exit;
?>